var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
/*
 * @Author: chentao
 * @Date: 2022-05-13 14:16:36
 * @Last Modified by: chentao
 * @Last Modified time: 2022-05-13 17:45:18
 * 5.20 构造签名
 *  {
 *     new (ParamTypeList):Type
 *   }：Type
 */
var myType = { x: 3, y: 5, z: 6 };
console.log("myType", myType);
//字面量类型
var MyDog;
var MyDogModel = /** @class */ (function () {
    function MyDogModel(name) {
        this.name = name;
    }
    return MyDogModel;
}());
MyDog = MyDogModel;
var myDog = new MyDog("小狗");
console.log(myDog);
function add(x, y) {
    return x + y;
}
function add2(x, y) {
    if (typeof x === 'number' && typeof y === 'number') {
        return x + y;
    }
    if (Array.isArray(x) && Array.isArray(y)) {
        return __spreadArray(__spreadArray([], x, true), y, true);
    }
}
